package com.libing.dao;

import com.libing.base.BaseDao;
import com.libing.entity.Company;
import com.libing.entity.CompanyVO;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description: 公司信息 DAO
 * @Auther: LEE
 * @Date: Create in 2018/2/9 13:59
 */

@Component
public interface CompanyDao extends BaseDao<Company> {

    /**
     * 插入数据并设置实体类主键
     * @param company
     * @return
     */
    int insertAndGetId(Company company);

    /**
     * 获取所有企业信息
     * @return
     */
    List<CompanyVO> selectAllVO();
}
